/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.jm.financeiro.entity;

import java.io.Serializable;
import java.util.Date;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

/**
 *
 * @author joao
 */
@Entity
@Table(name = "processo_situacao_temp", catalog = "salao", schema = "public")
@NamedQueries({
    @NamedQuery(name = "ProcessoSituacaoTemp.findAll", query = "SELECT p FROM ProcessoSituacaoTemp p")})
public class ProcessoSituacaoTemp implements Serializable {

    private static final long serialVersionUID = 1L;
    @Id
    @Basic(optional = false)
    @NotNull
    @Column(nullable = false)
    private Integer id;
    @Temporal(TemporalType.TIMESTAMP)
    private Date assdata;
    @Size(max = 255)
    @Column(length = 255)
    private String assdescricao;
    @Size(max = 255)
    @Column(length = 255)
    private String asssituacao;

    public ProcessoSituacaoTemp() {
    }

    public ProcessoSituacaoTemp(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public Date getAssdata() {
        return assdata;
    }

    public void setAssdata(Date assdata) {
        this.assdata = assdata;
    }

    public String getAssdescricao() {
        return assdescricao;
    }

    public void setAssdescricao(String assdescricao) {
        this.assdescricao = assdescricao;
    }

    public String getAsssituacao() {
        return asssituacao;
    }

    public void setAsssituacao(String asssituacao) {
        this.asssituacao = asssituacao;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof ProcessoSituacaoTemp)) {
            return false;
        }
        ProcessoSituacaoTemp other = (ProcessoSituacaoTemp) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "br.jm.financeiro.entity.ProcessoSituacaoTemp[ id=" + id + " ]";
    }
}
